home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / batch.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  5KB  |  173 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <!--
  6.     09-10-2003 - Mirco Bova
  7.     Added some new batch commands using win2K help as reference.
  8.  
  9.     04-12-2001 - Mirco Bova
  10.     this file is based on the original JEdit batch.xml mode.
  11.     The main upgrade consisting in adding the standard MS-DOS
  12.     commands as keywords and functions:
  13.     - keywords =        internal shell commands;
  14.     -    functions =        standard MS-DOS commands (.exe or .com in DOS or
  15.                                     windows\command directory).
  16.  
  17.     Minor enhancements by Alex Jacoby on 28-feb-2003
  18. -->
  19.  
  20. <!-- The keywords and functions here defined are those of MS-DOS 6.22,
  21.          plus a few as of Windows XP.
  22.  -->
  23.  
  24. <MODE>
  25.     <PROPS>
  26.         <PROPERTY NAME="lineComment" VALUE="rem" />
  27.         <PROPERTY NAME="indentOpenBrackets" VALUE="(" />
  28.         <PROPERTY NAME="indentCloseBrackets" VALUE=")" />
  29.     </PROPS>
  30.     <RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="FALSE">
  31.         <!-- 'echo off' statements -->
  32.         <SEQ TYPE="KEYWORD3">@</SEQ>
  33.  
  34.         <SEQ TYPE="OPERATOR">+</SEQ>
  35.         <SEQ TYPE="OPERATOR">|</SEQ>
  36.         <SEQ TYPE="OPERATOR">&</SEQ>
  37.         <SEQ TYPE="OPERATOR">!</SEQ>
  38.         <SEQ TYPE="OPERATOR">></SEQ>
  39.         <SEQ TYPE="OPERATOR"><</SEQ>
  40.  
  41.         <!-- labels - eg ":test" or "goto :test" -->
  42.         <MARK_FOLLOWING AT_WORD_START="TRUE" TYPE="LABEL">:</MARK_FOLLOWING>
  43.  
  44.         <!-- comments -->
  45.         <EOL_SPAN_REGEXP AT_WHITESPACE_END="TRUE" HASH_CHAR="REM" TYPE="COMMENT1">REM\s</EOL_SPAN_REGEXP>
  46.  
  47.         <!-- literals -->
  48.         <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
  49.             <BEGIN>"</BEGIN>
  50.             <END>"</END>
  51.         </SPAN>
  52.  
  53.         <!-- variables -->
  54.         <SEQ TYPE="KEYWORD2">%0</SEQ>
  55.         <SEQ TYPE="KEYWORD2">%1</SEQ>
  56.         <SEQ TYPE="KEYWORD2">%2</SEQ>
  57.         <SEQ TYPE="KEYWORD2">%3</SEQ>
  58.         <SEQ TYPE="KEYWORD2">%4</SEQ>
  59.         <SEQ TYPE="KEYWORD2">%5</SEQ>
  60.         <SEQ TYPE="KEYWORD2">%6</SEQ>
  61.         <SEQ TYPE="KEYWORD2">%7</SEQ>
  62.         <SEQ TYPE="KEYWORD2">%8</SEQ>
  63.         <SEQ TYPE="KEYWORD2">%9</SEQ>
  64.         <!-- for-loop variable (one char after %%) -->
  65.         <SEQ_REGEXP TYPE="KEYWORD2"
  66.                     HASH_CHAR="%%"
  67.                     AT_WORD_START="TRUE"
  68.                     >%%[\p{Alpha}]</SEQ_REGEXP>
  69.         <SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
  70.             <BEGIN>%</BEGIN>
  71.             <END>%</END>
  72.         </SPAN>
  73.  
  74.         <KEYWORDS>
  75.             <!-- KEYWORD1 are internal MS-DOS shell commands -->
  76.             <KEYWORD1>cd</KEYWORD1>
  77.             <KEYWORD1>chdir</KEYWORD1>
  78.             <KEYWORD1>md</KEYWORD1>
  79.             <KEYWORD1>mkdir</KEYWORD1>
  80.  
  81.             <KEYWORD1>cls</KEYWORD1>
  82.  
  83.             <KEYWORD1>for</KEYWORD1>
  84.             <KEYWORD1>if</KEYWORD1>
  85.  
  86.             <KEYWORD1>echo</KEYWORD1>
  87.             <KEYWORD1>echo.</KEYWORD1>
  88.  
  89.             <KEYWORD1>move</KEYWORD1>
  90.             <KEYWORD1>copy</KEYWORD1>
  91.             <KEYWORD1>move</KEYWORD1>
  92.             <KEYWORD1>ren</KEYWORD1>
  93.             <KEYWORD1>del</KEYWORD1>
  94.             <KEYWORD1>set</KEYWORD1>
  95.  
  96.             <!-- new KEYWORDS from Win2K help -->
  97.             <KEYWORD1>call</KEYWORD1>
  98.             <KEYWORD1>exit</KEYWORD1>
  99.             <KEYWORD1>setlocal</KEYWORD1>
  100.             <KEYWORD1>shift</KEYWORD1>
  101.             <KEYWORD1>endlocal</KEYWORD1>
  102.             <KEYWORD1>pause</KEYWORD1>
  103.  
  104.             <!-- KEYWORD2 are commands options -->
  105.  
  106.             <KEYWORD2>defined</KEYWORD2>
  107.             <KEYWORD2>exist</KEYWORD2>
  108.             <KEYWORD2>errorlevel</KEYWORD2>
  109.  
  110.             <!-- new KEYWORD options from Win2K help -->
  111.             <KEYWORD2>else</KEYWORD2>
  112.  
  113.             <KEYWORD2>in</KEYWORD2>
  114.             <KEYWORD2>do</KEYWORD2>
  115.  
  116.             <KEYWORD2>NUL</KEYWORD2>
  117.             <KEYWORD2>AUX</KEYWORD2>
  118.             <KEYWORD2>PRN</KEYWORD2>
  119.  
  120.             <KEYWORD1>not</KEYWORD1>
  121.  
  122.             <!-- goto is a special case we want to distinguish it -->
  123.             <KEYWORD3>goto</KEYWORD3>
  124.  
  125.             <!-- FUNCTION are standard MS-DOS commands -->
  126.             <!-- (those you find as stand-alone .exe or .com) in win95 %windows_root%\command folder -->
  127.             <FUNCTION>APPEND</FUNCTION>
  128.             <FUNCTION>ATTRIB</FUNCTION>
  129.             <FUNCTION>CHKDSK</FUNCTION>
  130.             <FUNCTION>CHOICE</FUNCTION>
  131.             <FUNCTION>DEBUG</FUNCTION>
  132.             <FUNCTION>DEFRAG</FUNCTION>
  133.             <FUNCTION>DELTREE</FUNCTION>
  134.             <FUNCTION>DISKCOMP</FUNCTION>
  135.             <FUNCTION>DISKCOPY</FUNCTION>
  136.             <FUNCTION>DOSKEY</FUNCTION>
  137.             <FUNCTION>DRVSPACE</FUNCTION>
  138.             <FUNCTION>EMM386</FUNCTION>
  139.             <FUNCTION>EXPAND</FUNCTION>
  140.             <FUNCTION>FASTOPEN</FUNCTION>
  141.             <FUNCTION>FC</FUNCTION>
  142.             <FUNCTION>FDISK</FUNCTION>
  143.             <FUNCTION>FIND</FUNCTION>
  144.             <FUNCTION>FORMAT</FUNCTION>
  145.             <FUNCTION>GRAPHICS</FUNCTION>
  146.             <FUNCTION>KEYB</FUNCTION>
  147.             <FUNCTION>LABEL</FUNCTION>
  148.             <FUNCTION>LOADFIX</FUNCTION>
  149.             <FUNCTION>MEM</FUNCTION>
  150.             <FUNCTION>MODE</FUNCTION>
  151.             <FUNCTION>MORE</FUNCTION>
  152.             <FUNCTION>MOVE</FUNCTION>
  153.             <FUNCTION>MSCDEX</FUNCTION>
  154.             <FUNCTION>NLSFUNC</FUNCTION>
  155.             <FUNCTION>POWER</FUNCTION>
  156.             <FUNCTION>PRINT</FUNCTION>
  157.             <FUNCTION>RD</FUNCTION>
  158.             <FUNCTION>REPLACE</FUNCTION>
  159.             <FUNCTION>RESTORE</FUNCTION>
  160.             <FUNCTION>SETVER</FUNCTION>
  161.             <FUNCTION>SHARE</FUNCTION>
  162.             <FUNCTION>SORT</FUNCTION>
  163.             <FUNCTION>SUBST</FUNCTION>
  164.             <FUNCTION>SYS</FUNCTION>
  165.             <FUNCTION>TREE</FUNCTION>
  166.             <FUNCTION>UNDELETE</FUNCTION>
  167.             <FUNCTION>UNFORMAT</FUNCTION>
  168.             <FUNCTION>VSAFE</FUNCTION>
  169.             <FUNCTION>XCOPY</FUNCTION>
  170.         </KEYWORDS>
  171.     </RULES>
  172. </MODE>
  173.